package demo01;

import java.util.Scanner;
import java.util.StringJoiner;

public class StringJoinerDemo03 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的年龄和身高：");
        String str = scanner.next();
        String[] split = str.split(",");
        //转为字符串类型


        int a = Integer.parseInt(split[0]);
        double b = Double.parseDouble(split[1]);
        System.out.println("整数类型的年龄为："+a);
        System.out.println("小数类型的身高："+b);

    }
}


